import logging
import datetime
import copy
import model
import utility
import config

from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class UpdatePage(webapp.RequestHandler):
    def get(self):
        #self.response.headers['Content-Type'] = 'text/html; charset=utf-8'
        self.response.headers['Content-Type'] = 'text/html;'
        image_url = self.request.get('image_url', '')
        resp = ''
        logging.debug('test')
        if image_url:
            resp = '<html><head></head><body>'
            resp += image_url
            resp += '</body></html>'
            logging.debug('Recived Image Url: '+ image_url)
        self.response.out.write(resp)

    def post(self):
        self.response.headers['Content-Type'] = 'text/html;'
        image_url = self.request.get('image_url', '')
        resp = ''
        if image_url:
            resp = '<html><head></head><body>'
            resp += image_url
            resp += '</body></html>'
            logging.debug('Recived Image Url: '+image_url)
        self.response.out.write(resp)


